package com.hoshiicloud.user.service.rbac;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.rbac.entity.SysPermissiones;

import java.util.List;

/**
 * <p>
 * 权限 服务类
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-18
 */
public interface ISysPermissionesService extends IService<SysPermissiones> {
    Response addPermission(SysPermissiones param);

    Response updatePermissionById(SysPermissiones param);

    Response deletePermissionById(String id);

    Response getDetail(String id);

    Response getList(QueryWrapper<SysPermissiones> queryWrapper);

    Response<IPage<SysPermissiones>> getPage(IPage<SysPermissiones> page, QueryWrapper<SysPermissiones> queryWrapper);

    Response getChildList(String id);

    List<SysPermissiones> getSysPermissionesByUserId(Long userId);
}
